IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[DeleteProductoDepartamentoByIdProducto]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[DeleteProductoDepartamentoByIdProducto]
GO

CREATE PROCEDURE [dbo].[DeleteProductoDepartamentoByIdProducto]
(
	@IdProducto int
)
AS
BEGIN
	SET NOCOUNT ON

	DELETE FROM [ProductoDepartamento]
	WHERE [IdProducto] = @IdProducto

	SET NOCOUNT OFF
END

GO
